package com.chaoyi.service.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chaoyi.dao.mysql.WhiteHomeMapper;
import com.chaoyi.model.Home;
import com.chaoyi.service.WhiteHomeService;

@Service
public class WhiteHomeServiceImpl implements WhiteHomeService{
	@Resource
	WhiteHomeMapper whiteHomeMapper;
	@Override
	public List<Home> findList(String offset, String limit,String type) {
		return whiteHomeMapper.findList(offset,limit,type);
	}
	@Override
	public int saveHome(Home home) {
		return whiteHomeMapper.saveHome(home);
	}
	@Override
	public Home findHomeOne(int id) {
		return whiteHomeMapper.findHomeOne(id);
	}
	@Override
	public int alertHomeSave(Home home) {
		return whiteHomeMapper.alertHomeSave(home);
	}
	@Override
	public int deleteHome(int id) {
		return whiteHomeMapper.deleteHome(id);
	}
	@Override
	public int findCount(String type) {
		return whiteHomeMapper.findCount(type);
	}
	@Override
	public int updateParameter(String parameter) {
		return whiteHomeMapper.updateParameter(parameter);
	}
	@Override
	public String findParameter() {
		return whiteHomeMapper.findParameter();
	}

}
